package com.wangsanfei.config;

import java.util.HashMap;
import java.util.Map;

import com.wangsanfei.util.MD5Util;
import com.wangsanfei.vo.YzmVo;



public class ConstConfig {

	public final static String DIC_DIVISION="->"; //字典分隔符
	public final static String ACTIVE_USER="active_user";//cookie写入的name
	public final static String SESSION_USER="session_user";//cookie写入的name
	public final static String SESSION_BRAND="SESSION_BRAND";
	public final static String SESSION_HOTEL="SESSION_HOTEL";
	public final static String SESSION_DEPT="SESSION_DEPT";
	
	public final static String SESSION_USER_TYPE="SESSION_USER_TYPE";//0是超级管理员，1是酒店管理员,2是前台用户
	
	public static Map<String,YzmVo> map=new HashMap<String, YzmVo>();
	
	public static Map<String, YzmVo> getMap() {
		return map;
	}

	public static void setMap(Map<String, YzmVo> map) {
		ConstConfig.map = map;
	}

	public static String getDicDivision() {
		return DIC_DIVISION;
	}

	public static String getActiveUser() {
		return ACTIVE_USER;
	}

	public static String getSessionUser() {
		return SESSION_USER;
	}

	public static void main(String[] args) {
		System.out.println(MD5Util.MD5("123456"));
	}
}
